package cn.liccshop.core.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import cn.liccshop.sys.base.BaseBean;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品基本属性表
 * </p>
 *
 * @author LiCC
 * @since 2019-04-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "shop_products")
public class ShopProducts extends BaseBean {

private static final long serialVersionUID = 1L;

    /**
     * 货品ID
     */
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    /**
     * 商品ID
     */
    @TableField("goods_id")
    private String goodsId;

    /**
     * 商品属性ID
     */
    @TableField("goods_attr")
    private String goodsAttr;

    /**
     * 排序
     */
    @TableField("product_sort")
    private Integer productSort;

    /**
     * 名称组合
     */
    @TableField("product_name")
    private String productName;

    /**
     * 货品库存数量
     */
    @TableField("product_number")
    private Integer productNumber;

    /**
     * 货品价格
     */
    @TableField("product_price")
    private BigDecimal productPrice;

    /**
     * 货品超市价格
     */
    @TableField("product_promote_price")
    private BigDecimal productPromotePrice;

    /**
     * 货品市场价
     */
    @TableField("product_market_price")
    private BigDecimal productMarketPrice;

    /**
     * 库存缺货警告
     */
    @TableField("product_warn_number")
    private Integer productWarnNumber;

    /**
     * 创建者
     */
    @TableField(value = "create_by", fill = FieldFill.INSERT)
    private String createBy;

    /**
     * 创建日期
     */
    @TableField(value = "create_date", fill = FieldFill.INSERT)
    private LocalDateTime createDate;

    /**
     * 更新者
     */
    @TableField(value = "update_by", fill = FieldFill.UPDATE)
    private String updateBy;

    /**
     * 更新日期
     */
    @TableField(value = "update_date", fill = FieldFill.UPDATE)
    private LocalDateTime updateDate;

    /**
     * 备注
     */
    @TableField("remarks")
    private String remarks;

    /**
     * 删除标识符
     */
    @TableField("del_flag")
    private Integer delFlag;


}
